package com.own.business.resource.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.own.component.common.base.entity.po.BaseCreatePo;
import com.own.constant.ConstantBeanSuffix;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * FileRecord
 *
 * @author chenxueli
 * @date 2023-07-07 14:05:14
 */
@Schema(title = "文件记录" + ConstantBeanSuffix.PO)
@Getter
@Setter
@ToString
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "own_system_file_record")
public class FileRecord extends BaseCreatePo implements Serializable {

    @Schema(title = "文件名称")
    private String name;

    @Schema(title = "文件原名称")
    private String oldName;

    @Schema(title = "文件地址（相对路径）")
    private String path;

    @Schema(title = "文件位置")
    private String position;

    @Schema(title = "文件类型")
    private String type;

    @Schema(title = "文件大小（字节）")
    private Long size;

    @Schema(title = "文件的md5值")
    private String md5;

}
